import Main from '@/components/main'
export default [
  {
    path: '/integral-calculation-management',
    name: 'integral-calculation',
    component: Main,
    meta: {
      access: ['INTEGRAL_MANAGER', 'INTEGRAL_CALCULATION'],
      title: '选手积分计算'
    },
    children: [
      {
        path: 'calculation',
        name: 'calculation',
        meta: {
          // icon: 'md-grid',
          title: '选手积分计算记录'
        },
        component: () => import('@/view/calculation/calculation.vue'),
      },
      {
        path: 'timing-task',
        name: 'timing-task',
        meta: {
          // icon: 'md-grid',
          title: '定时任务列表'
        },
        component: () => import('@/view/calculation/timing-task.vue'),
      },
      {
        path: 'calculation/add-start',
        name: 'calculation-add-start',
        meta: {
          // icon: 'md-grid',
          title: '新增计算'
        },
        component: () => import('@/view/calculation/add-start.vue')
      },
      {
        path: 'calculation/add/:ruleId/:ranktype',
        name: 'calculation-add',
        meta: {
          hideInMenu: true,
          title: '新增计算'
        },
        component: () => import('@/view/calculation/add.vue')
      },
      {
        path: 'calculation/detailed/:id',
        name: 'calculation-detailed',
        meta: {
          hideInMenu: true,
          title: '计算结果'
        },
        component: () => import('@/view/calculation/detailed.vue')
      },
      {
        path: 'calculation/person-detailed/:detailId',
        name: 'calculation-person-detailed',
        meta: {
          hideInMenu: true,
          title: '个人比赛详情'
        },
        component: () => import('@/view/calculation/person-detailed.vue')
      },
    ]
  },
]
